package com.jzo2o.customer.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 机构认证审核记录表
 * </p>
 *
 * @author author
 * @since 2025-07-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("agency_certification_audit")
@ApiModel(value="AgencyCertificationAudit对象", description="机构认证审核记录表")
public class AgencyCertificationAudit implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "审核记录ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "机构ID（关联机构表）")
    private Long serveProviderId;

    @ApiModelProperty(value = "提交时的企业名称")
    private String name;

    @ApiModelProperty(value = "提交时的统一社会信用代码")
    private String idNumber;

    @ApiModelProperty(value = "提交时的法人姓名")
    private String legalPersonName;

    @ApiModelProperty(value = "提交时的法人身份证号")
    private String legalPersonIdCardNo;

    @ApiModelProperty(value = "提交时的营业执照路径")
    private String businessLicense;

    @ApiModelProperty(value = "认证状态：0=初始态，1=认证中，2=认证成功，3=认证失败")
    private Integer certificationStatus;

    @ApiModelProperty(value = "审核状态：0=未审核，1=已审核")
    private Integer auditStatus;

    @ApiModelProperty(value = "审核人ID（运营人员）")
    private Long auditorId;

    @ApiModelProperty(value = "审核时间")
    private LocalDateTime auditTime;

    @ApiModelProperty(value = "拒绝理由（审核失败时填写）")
    private String rejectReason;

    @ApiModelProperty(value = "申请提交时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "记录更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "审核人姓名")
    private String auditorName;


}
